#ifndef _PLAYER_HPP
#define _PLAYER_HPP
#include "WorldPacket.hpp"
#include "WorldSession.hpp"
#include <memory>
#include <google/protobuf/message.h>
#include "cs.pb.h"
class Player : public std::enable_shared_from_this<Player>
{
public:
    Player(std::shared_ptr<WorldSession> session);
    ~Player();
public:
    bool RegisterProtocol();
    bool Update(uint32_t diff);
    std::shared_ptr<WorldSession>& GetSession();
public:
    // proto
    static void Login(const google::protobuf::Message& msg) {}
    void RecvCreateRoomMsg(const cs::CreateRoomReq& msg);
private:
    std::shared_ptr<WorldSession> _session;
};

#endif